var prefix = ctx + "system/mTelRcd";
$(function () {
        var tab = $('.listWaitTab').find('li')[2];//待办件列表
        var menu = parent.$('.active.menuTab');//当前选中的菜单
        //当待办件被选中并且待处理来电记录菜单时同时被选中才发送请求
        if (tab.getAttribute('class') == 'active') {
            $.form.reset('post-form2');
            $.table.refresh('data-table3');
        }
    var option={
        id:'data-table3',
        url: prefix + "/reenterList",
        updateUrl: prefix + "/telHandle/{id}",
        method: 'post',
        sortName: "pkId",
        sortOrder: "desc",
        uniqueId: "pkId",
        modalName: "重录件",
        fixedColumns: true,
        fixedNumber: 1,
        fixedRightNumber: 1,
        pagination: true,
        pageNumber:1,
        pageSize:10,
        pageList:[10,20,50],
        columns: [{
            checkbox: true
        },
            {
                field: 'wsCode', title: '流水号', align: 'left', halign: 'center', sortable: true
            },
            {field: 'liftTelNo', title: '分机号', align: 'center', halign: 'center'},
            {field: 'liftWorker', title: '接听人', align: 'center'},
            {field: 'fmAreaName', title: '地区', align: 'center', sortable: true},
            {field: 'fromTelA', title: '来电号码', align: 'left', halign: 'center', sortable: true},
            {field: 'fromName', title: '来话人', align: 'center', sortable: true},
            {field: 'fromTime', title: '接听时间', align: 'center', sortable: true},
            {
                field: 'bkDate', title: '退回日期', align: 'center',
            }, {
                field: 'yworker', title: '值班长', align: 'center',
            },
            {field: 'xsysDesc', title: '值班长意见', align: 'left', halign: 'center'},
            {
                title: '操作',
                align: 'center',
                formatter: function (value, row, index) {
                    var actions = [];
                    actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="processListWait(\'' + row.pkId + '\')"><i class="fa fa-edit"></i>处理</a> ');
                    return actions.join('');
                }
            }]
    }
    $.table.init(option)
})